package com.wechat.backend.repository;

import com.wechat.backend.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
    User findById(long id);
    List<User> findByUsernameContainingOrNicknameContaining(String username, String nickname);
} 